import React, { Component } from 'react'
import Cat from './components/Cat'
import Mouse from './components/Mouse'
import Demo from './components/Demo'

export default class App extends Component {
  render() {
    return (
      <div>
        <h1>老陶抓海静</h1>
        <Demo>{(state) => <Mouse {...state} ></Mouse>}</Demo>
        <Demo>{(state) => <Cat {...state}></Cat>}</Demo>
      </div>
    )
  }
}
